﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Service.DataAccess.DataAccessLogic;
using Service.BusinessLayer.Entities;
namespace Service.BusinessLayer.Logic
{
    public class XL_TaiKhoan
    {
        private TaiKhoan_DA tkda = new TaiKhoan_DA();
        public void them(TaiKhoan tk)
        {
            tkda.them(tk);
        }
        public void sua(TaiKhoan tk)
        {
            tkda.sua(tk);
        }
        public void xoa(string tendangnhap)
        {
            tkda.xoa(tendangnhap);
        }
        public DataSet LayDS()
        {
            DataSet kq = new DataSet();
            kq=tkda.LayDS();
            return kq;
        }
        public DataSet LayDS_Theo_TenDangNhap(string TenDangNhap)
        {            
            DataSet ds = new DataSet();
            ds = tkda.LayDS_Theo_TenDangNhap(TenDangNhap);
            return ds;
        }
        public void SuaPhanQuyen(TaiKhoan tk)
        {
            tkda.SuaPhanQuyen(tk);
        }
        public void SuaMatKhau(TaiKhoan tk)
        {
            tkda.SuaMatKhau(tk);
        }
        public void Backup_Data(TaiKhoan tk)
        {
            tkda.Backup_Data(tk);
        }
    }
}
